import { Get, Post, GetFile } from "@/api/request";
export function getFavListData(params) {
  return Get("/boxroom/list", params);
}
export function getIsFav(params) {
  return Get("/fileCollection/judge", params);
}
export function getIsLike(params) {
  return Get("/fileLike/judge", params);
}
export function updateFileLike(params) {
  return Get("/fileLike/update", params);
}
export function addToFavorite(params) {
  return Post("/boxroom/addFile", params);
}
export function createNewFav(params) {
  return Post("/boxroom/create", params);
}
export function getFileInfoData(params) {
  return Get("/file/look", params);
}
export function getPreviewImage(fileId) {
  return Get("/file/preview/" + fileId);
}
export function getFileDownload(params) {
  return GetFile("/file/download", params, "blob");
}
